home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vbxs
/
vbz01
/
meta.frm
< prev
next >
Wrap
Text File
|
1996-04-08
|
1KB
|
44 lines
VERSION 2.00
Begin Form Form1
Caption = "Form1"
Height = 4425
Left = 1035
LinkTopic = "Form1"
ScaleHeight = 4020
ScaleWidth = 7365
Top = 1140
Width = 7485
End
DefInt A-Z
Declare Sub DeleteMetaFile Lib "GDI" (ByVal hMF)
Declare Sub SetWindowOrg Lib "GDI" (ByVal hDC, ByVal X, ByVal Y)
Declare Sub SetWindowExt Lib "GDI" (ByVal hDC, ByVal X, ByVal Y)
Declare Sub MoveTo Lib "GDI" (ByVal hDC, ByVal X, ByVal Y)
Declare Sub LineTo Lib "GDI" (ByVal hDC, ByVal X, ByVal Y)
Declare Sub Rectangle Lib "GDI" (ByVal hDC, ByVal nLeft, ByVal nTop, ByVal nRight, ByVal nBottom)
Declare Function CreateMetaFile Lib "GDI" (ByVal lpString As Any)
Declare Function CloseMetaFile Lib "GDI" (ByVal hMF)
Const NULL = &H0&
Sub Form_Click ()
Dim MyRect As Rect
hMetaDC = CreateMetaFile(Null)
SetWindowOrg hMetaDC, 0, 0
SetWindowExt hMetaDC, 100, 100
Rectangle hMetaDC, 0, 0, 100, 100
MoveTo hMetaDC, 0, 0
LineTo hMetaDC, 100, 100
MoveTo hMetaDC, 0, 100
LineTo hMetaDC, 100, 0
hMeta = CloseMetaFile(hMetaDC)
MyRect.Right = 1000
MyRect.Bottom = 1400
Meta2Aldus hMeta, MyRect, 10, "MYMETA.WMF"
DeleteMetaFile hMeta
End Sub